package geppetto.phraseTable.phrase.feature.global;

import java.util.ArrayList;

import geppetto.phraseTable.PhraseTable;
import geppetto.phraseTable.phrase.Phrase;
import geppetto.phraseTable.phrase.feature.calc.local.AbstractFeatureCalc;

public class LocalFeatureAdapter implements AbstractGlobalFeatureCalc{
	public AbstractFeatureCalc calc;

	public LocalFeatureAdapter(AbstractFeatureCalc calc) {
		super();
		this.calc = calc;
	}

	@Override
	public void calculateFeature(Phrase phrase, PhraseTable table) {
		ArrayList<Phrase> phrases = new ArrayList<Phrase>();
		phrases.add(phrase);
		calc.calculateFeature(phrases);
	}
	
}
